<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>图片列表</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="generator" content="vim" />
        <meta name="author" content="dantezhu" />
        <meta name="description" content="" />
        <script src="/static/js/jquery-1.2.1.pack.js" type="text/javascript"></script>
        <script type="text/javascript" charset="utf-8">
            function del_entry(entry_id)
            {
                url = '/ajax/entry/del/' + entry_id;
                $.post(url, {}, function(data){
                       window.location.reload();
                       },'json')
            }
        </script>
    </head>

    <body>
        <table border="1">
            <tr align="left">
                <th>ID</th>
                <th>备注</th>
                <th>创建时间</th>
                <th>投票</th>
                <th>是否禁止</th>
                <th>预览</th>
                <th>操作</th>
            </tr>
            {% for obj in objlist %}
            <tr align="left">
                <td > {{ obj.id }} </td>
                <td > {{ obj.remark }} </td>
                <td > {{ obj.create_time }} </td>
                <td > {{ obj.up_num }} </td>
                <td > {{ obj.forbid }} </td>
                <td > <img src="/entry/static/{{ obj.id }}" height="100"> </td>
                <td> <input type="button" name="some_name" value="删除" onclick="del_entry({{ obj.id }})" /></td>
            </tr>
            {% endfor %}
        </table>
    </body>
</html>
